package cn.wolfcode.crm.service.impl;

import cn.wolfcode.crm.domain.WorkInformation;
import cn.wolfcode.crm.mapper.WorkInformationMapper;
import cn.wolfcode.crm.service.IWorkInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WorkInformationServiceImpl implements IWorkInformationService {
    @Autowired
    private WorkInformationMapper workInformationMapper;

    public void insert(WorkInformation record) {
        workInformationMapper.insert(record);
    }
    public void updateByPrimaryKey(WorkInformation record) {
        workInformationMapper.updateByPrimaryKey(record);
    }

    public List<WorkInformation> selectAll() {
        return workInformationMapper.selectAll();
    }

    public List<WorkInformation> selectByEmployeeId(Long empId) {
        return workInformationMapper.selectByEmployeeId(empId);
    }

    public WorkInformation selectByPrimaryKey(Long id) {
        return workInformationMapper.selectByPrimaryKey(id);
    }
}
